package com.zheng.Student接口版;

import java.util.ArrayList;
import java.util.Scanner;

public class StudentManagTest {
    public static final Scanner INPUT=new Scanner(System.in);
    public static final StudentTollClass stu=new StudentTollClass();
    public static void main(String[] args) {

        ArrayList<Student> list=new ArrayList<>();
        out:
        while (true) {
            //打印菜单
            stu.studentShow();
            int count = INPUT.nextInt();
            switch (count) {
                case 1:
                    //添加学生
                    stu.addStudent(list);
                    break;
                case 2:
                    //删除学生
                    stu.deleteStudent(list);
                    break;
                case 3:
                    //修改学生信息
                    stu.upDateStudent(list);
                    break;
                case 4:
                    //查看学生对象
                    stu.showAllStudent(list);
                    break;
                case 5:
                    break out;
                default:
                    System.out.println("输入错误！");
                    break;
            }
        }
    }


}
